using System;
using System.Collections.Generic;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Net;
using Microsoft.Xna.Framework.Storage;
using System.Collections;
using NovodexWrapper;
using System.Threading;

namespace marbletrack
{
    public struct BallData
    {
        public enum BallType { Ball, Particle };

        private int ballListIndex_;
        private BallType ballType_;

        public BallData(int ballListIndex, BallType ballType)
        {
            ballListIndex_ = ballListIndex;
            ballType_ = ballType;
        }

        public Ball GetBall()
        {
            if (ballType_ == BallType.Ball)
            {
                return Game1.ballList[ballListIndex_];
            }
            else
            {
                return Game1.ParticleList[ballListIndex_];
            }
        }
    }
}
